package com.ada.apps;

import java.io.InputStream;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by cng19 on 2017/6/4.
 */
public class Apps {

    public static void main(String[] args) {



        for (int i = 1; i < 9; i++) {
            for (int j = 1; j <=i; j++) {
                System.out.print(i+"+"+j+"="+(i+j)+"  ");
            }
            System.out.println("");
        }
        test(new Object());
        test(new ArrayList());
    }

    public static void test(Object o){
        if (o instanceof List){
            System.out.println("数组");
        }else{
            System.out.println("对象");
        }

    }
}
